Get all points
GET/points/:entityType/:userID
This endpoint returns all points
Request
Path Parameters
userID stringrequired
The user ID of the user to get points for
entityType stringrequired
Possible values: [user
, group
]
The entity type of the user to get points for
Responses
- 200
A list of points
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
history
object[]
required
this user's point history
value integerrequired
the number of points
reason stringrequired
the reason for the points
created_at stringrequired
the date the points were created
source stringrequired
the source of the points
[
{
"history": [
{
"value": 0,
"reason": "string",
"created_at": "string",
"source": "string"
}
]
}
]
Loading...